ocaml: install built modules
authorIan Campbell <ian.campbell@citrix.com>
Tue, 23 Nov 2010 19:28:03 +0000 (19:28 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 23 Nov 2010 19:28:03 +0000 (19:28 +0000)
commitdd13d5775af0d79d92e30c21cea69f2802e2bcf1
tree312aad5943e51e2a3d0f2e5152616f8be3f4af60
parent46d89e453b861697531e268dbd85dfd65cdfae7d
ocaml: install built modules

Previously the install target was having no effect because it ended up
calling the default target in the subdir Makefile instead of the
install target.

Resolve this by tying the tools/ocaml Makefiles into the generic
handling done by tools/Rules.mk.

Other changes arising in one way or another from this:
- Add libs/xl/META.in
- Update .hgignore for META files
- Create leading directories
- Remove existing module before installation in install targer
  (worksaround what appears to be a quirk of "ocamlfind install")
- Use the globally defined $(DESTDIR)
- Move "ocamlfind printfconf destdir" to a common variable,
  repurposing exising unused OCAMLDESTDIR, incorporating $(DESTDIR) at
  the same time.
- Drop a few unused variabe definitions (mainly to avoid deciding if
  $(DESTDIR) made sense for them or not.
- Pass -destdir to ocamlfind in uninstall target for symmetry with
  install target.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
14 files changed:
.hgignore
tools/ocaml/Makefile
tools/ocaml/common.make
tools/ocaml/libs/Makefile [new file with mode: 0644]
tools/ocaml/libs/eventchn/Makefile
tools/ocaml/libs/log/Makefile
tools/ocaml/libs/mmap/Makefile
tools/ocaml/libs/uuid/Makefile
tools/ocaml/libs/xb/Makefile
tools/ocaml/libs/xc/Makefile
tools/ocaml/libs/xl/META.in [new file with mode: 0644]
tools/ocaml/libs/xl/Makefile
tools/ocaml/libs/xs/Makefile
tools/ocaml/xenstored/Makefile